Regulators were circling. The stock was sinking. This is the inside story of how Scharf took the toughest job on Wall Street, and got a legendary corporation back on track.