Coherent Cavity Nonlinear Optics and its Applications