The Magnetic Excitation Spectrum and Thermodynamics of High-$T_c$ Superconductors