Upgraded for v2 Plugin SDK, supports HTTP/S proxy