A comprehensive guide to refinancing a mortgage, including when it makes sense, costs involved, and how to get started.