Structural changes, run server.js

Some structural change, added setname, and global chat(use console,
sendmsgtoall('abc'))