Implemented #8 and refactored http_request into http_request_context and created a new http_request to pass to the request callbacks.