Nanoscale Linear and Nonlinear Optics