Gauging Spacetime Symmetries on the Worldsheet and the Geometric Langlands Program