Measurement of resonant and CP components in (B)over-bar(s)(0) -> J/psi pi(+)pi(-) decays