Added improved client support

Clients are now stored in an independent data structure
Updated build.txt
Implemented basic client support
Improvements to protocol and socket