Cleanup conversion C++ <-> Javascript of HttpRequest/HttpResponse.