Measurement of the W+W- cross section in pp collisions at sqrt(s)=7 TeV and limits on anomalous WWgamma and WWZ couplings