Spatiotemporal light control with active metasurfaces