Started storing messages on the server. Also some bug fixes to
JavaScript code.