Added language class and event for new messages to Chat.class.js
Compressed javascript, added build script
Redirect to /index when a connection error occurs