Smart flavored-beverage machines are persuading consumers nationwide to ditch their plastic bottles.