Resonance, Chaos and Stability: The Three-Body Problem in Astrophysics