The abelian/nonabelian correspondence in Gromov-Witten theory I