Tim Westergren, a co-founder of Pandora, becomes chief executive as the online music company tries to regain its competitive edge.