A digital mortgage machine met a market that stopped refinancing. Now loanDepot is betting on home equity, repeat customers and a channel it once abandoned.