The company has endured privacy fiascos, overhauled management, and changed course on its way to a $1.5B valuation.