Theory for strongly coupled quantum dot cavity quantum electrodynamics