Fix typo and socket username set logic change

Moved statement to set socket.id as the username to an else clause to
the username sent by the client being blank.
Create server code in coffeescript

Translated server.js into server.coffee.