Support on_request_dispatch and on_request_end within an Application subclass