remote endpoint added, skeleton of client connection
http server almost ported