Move tcp-server.js and webclient.js to the new freedom socket API.
Change tcp server to use promises from freedom.
Fix various bugs with tcp-server implementation.
Update webclient to use promises instead of callbacks.
Merge branch 'freedom_socket_refactor'