Integrability and algebraic structure of the quantum Calogero-Moser model