deprecated after_static_dispatch hook in favor of before_routes and added after_static hook