Cavity polaritons beyond the boson approximation