Flagstar has returned to profitability after a two-year struggle with commercial real estate loans; the lender is now focusing on growth.