Hooks

The documentation (`doc/hooks.md`) state that `output['hook']['configuration']` needs to contain the same sort of update/remove business we use in `update-node-metadata`. I am fine with doing either (wholseale replacement or metadata-like editing) but the docs and the code need to do the same thing ;)