SAN FRANCISCO (Reuters) - Zynga Inc will slash costs in 2014 by shedding 15 percent of its workforce, the company that developed "Farmville" said on Thursday, adding that it will bolster its pipeline of new mobile games by buying game developer NaturalMotion for $527 million, moves that sent its stock up 20 percent after hours.