Linear and nonlinear wave equations on black hole spacetimes