Energy-dependent Many-Body Perturbation-Theory with Applications in Quantum Electrodynamics Problems