The strategy changes and shifts in snacking habits that brought Hostess from bankruptcy (twice) to a $4.6 billion deal.