HTML5 client - events

Organizing the way events are received and passed on in the HTML5 client, from socke.io to models to views. Using now a class that acts like an "event bus".