Quantum Theory for Near-Field Nano-Optics