Introduce RequestHandler to allow resources to be served
Update middleware to use RequestHandlers