Typed events.
Merge pull request #44 from ocsigen/event_handler

Typed events.