Change the way events are registered and callbacks are handled.

This fixes issue #3
Pull in go.incremental's Int, drop the dependency.
Merge pull request #14 from GeertJohan/fix-callback-fatal

Change the way events are registered and callbacks are handled.