Mesoscopic Physics of Electrons and Photons