A mortgage is a loan that helps you buy a home, but understanding how it works is key to making smart decisions. Rates, type and qualifications outlined in simple steps.