emit & listen for 'chat message' events

When a chat message is sent, emit the ‘chat message’ event and
broadcast to all clients except the client who sent the message.
Instead use jQuery to append the message to the DOM for the client who
sent the message.