Add up and down respawning modes.
Add generic user event support to script API.
Add sample test script.