Buying a second home as your first home can really pay off. Here's how to make it work financially.