There are several tax law changes that can help defray the cost of owning - or selling - a home. Here's what to know.