(Mis-)handling gauge invariance in the theory of the quantum Hall effect. I: Unifying action and the nu=1/2 state