Mathematical Foundations of Quantum Field Theory