Mesoscopic cavity quantum electrodynamics with quantum dots