Add support for onfoo properties

Wrap all onfoo properties so that the function is called with a wrapped event
object.
Merge pull request #147 from arv/on-event-properties

Add support for onfoo properties