Bunch of git hooks, mostly stolen from here and there.