Foundations of Quantum Theory