Warn about ghooks not being installed and bail.

Had to wrap the entire hook template into an IIFE so that esprima stop complaining about return'ing
not being in a function body. Running `process.exit(0)` instead of returning messes up with all tests
as it kills the test process.

Addresses #9.