Add an events framework which calls out to scripts.

This will allow us to e.x. have a script which tweets whenever someone dies.