Changed Structure of Network Code

Switched from websockets to using TCP sockets