baseline working

converted from nowjs to simple socket.io