moved csrf, error, and notFound blueprints into hooks and added hooks config for environments