Multiple handlers per event type

Fixes #199.
Fixes #169.