Cosmic Magnetic Fields and their Role in High Energy Astrophysics