A quantum model for collective recoil lasing