SAN FRANCISCO (Reuters) - Zynga Inc will shed 15 percent of its workforce to slash costs and buy mobile game developer NaturalMotion for $527 million to refresh a stalled games pipeline, moves that sent its stock soaring 20 percent in after-hours trading.