Event callback model mimics DOM Event API model.

Also changed all event names.

Fixes #286.
Fixes #285.
Fixes #105.