The mortgage market, driven by refinances due to low interest rates for two years, is now shifting back to purchases.