Selling a home comes with some of the most generous tax breaks the US has to offer. Just make sure you qualify.