Big update. Basic functionality for socket server in place.
Big refactor coming in terms of protocols.