Renormalization of Gauge Theories and Gravity