Most protocol-related things finished

Still debugging..
Bug fixes

- bufferedPipe was not sending the last segment
- Protocol.clientHandle* were missing the Host header, causing rhcloud to
  reply with http 400