How makeup’s heaviest hitters — E.l.f. Beauty, Milk Makeup and Benefit Cosmetics among them — have cultivated a creative and operational agility to usher in the age of virality.