Move host (formerly Endpoint) to client

![i have no idea what i am doing](http://i.imgur.com/xVyoSl.jpg)

But I think this would make the reading and writing of the host (formerly Endpoint) safe.