The Electromagnetic Origin Of Quantum Theory And Light