Perturbative and non-perturbative renormalization of quantum field theories and gravity