For most of the last two years, the mortgage market has been dominated by refinances thanks to persistently low interest rates. But the market seems to be shifting back to purchases this year.