Added automatic invocation of standard event handlers

Handlers named onSelect,  onDeselect etc are run without having to be
wired up first.