Symmetries in Quantum Field Theory and Quantum Gravity