Move HTTP response handling to a separate handler.

This change causes HTTP responses to be handled in a "proper" response handler rather than as part of the `Resources.makeHTTPRequest` request handler. This would allow browser extensions that make use of the `resources.addHandler()` and `resources.mock()` methods to re-use the existing HTTP machinery for processing things like the `Set-Cookie` header and redirects.