Hooks

I'll update this to be more strict; even simple scripts need to output `{'output': 'message'}` otherwise the event will have severity `warn`.