The inside story behind the firing of GroupOn CEO Andrew Mason, and how investors said to be bent on cashing out threaten to undermine the company’s future.