As someone who spent years in the mortgage industry, although closer to the CDO side of the house, I'll back up the advice here as well. Do nothing that touches your credit file until that mortgage is CLOSED and DONE (not just approved).
I would also add that if you can afford it, a 15 year mortgage right now is beyond cheap.