replace EventRouter by generic EventEmitter base class
fix one stray call
fix listeners for events with arguments
consistency (underscore -> dash)
bring back the stats widget
add parens to function calls
Merge pull request #207 from noio/refactor-events

Refactor EventRouter by Thomas van den Berg aka Noio