Implemented server API requests (handshake and connected); and a tunnelled http proxy