All-Optical Control of Light in Micro- and Nanophotonics