Bose glass and superfluid phases of cavity polaritons.