Integrability of the conformal loop ensemble