Moment map and gauge geometric aspects of the Schroedinger and Pauli equations