Hooks

The event that gets logged for this hook run is really hard to decipher, since the output generated by /api/collections/hooks is missing both the name of the hook and the name of the event, both would be important to help find output from a hook script. hook_id is set in the database but not in the output; the name of the event isn't included at all. Would be good to set the `event` (or `handler` ?) key in hte event's entry to the name of the event, so that you get sth like this in the events collection

      { 
        "hook": ref to hook,
        "node": ref to node
        "entry": {
         "handler": "node-booted",
         "exit_status": 0,
         "severity": "warn",
         "error": "unexpected key in hook's output: xnode"
        }
     }