Active and nonlinear nanophotonics facilitated by hot-carrier dynamics