Foundations of Quantum Field Theory