Add an events framework which calls out to scripts.
Merge pull request #39 from eatnumber1/event_scripts

Add an events framework which calls out to scripts.