Nonlinear Optical Cavity Dynamics