Gels: Energetics, Singularities, and Cavitation