socket utils - sendall and recieveall
a bit documentation to protocol
mini fixes for server
start of nim client