J-holomorphic curves, moment maps, and invariants of Hamiltonian group actions