Add a mechanism for dependency injection of the request and response classes.