Chaos, Order, and Periodic Orbits in 3:1 Resonant Planetary Dynamics