TS-2522 Better hook management, and cleanup

This also does

     - Add support for system wide config directory as default
     - Better debug messages (textual hook names etc.)
     - Less overhead on creating TXN hooks
TS-2522 Update the docs with new default conf dir