Make Socket inherit from Read/Write interface
Modify http_proxy.cc to use ReadWriteInterface instead of Socket.
Factor out protobuf logging into separate function.