Mathematical Foundations of Quantum Theory