Foundations of High-Energy Astrophysics