A Microscopic Laser Theory. I. Basic Formulation