The tax code allows real estate developers or managers to use special tax breaks and benefits that the rest of us can’t. Here’s how that works.