Dented by layoffs, BuzzFeed charts a path to a sustainable business