Nonlinear Optics in Chip-Based Microresonators and their Applications