How to juggle buying and listing a home for sale.