Adding code of event manager I wrote in the past

Mostly to run HTML5 training days.