Mayflower Brewing Co., one of the state’s largest breweries and among the oldest of today's craft brewers, has been saved from a planned closure thanks to a deal with a distribution company.