sockets stuff

preliminary server side socket and client-side JS