Basic Event handler framework
Merge pull request #39 from Raphfrk/event_conversion

As agreed on IRC