Run hooks in the git repository directory, logging improvements
Git is ran within the repository, and the working directory should be the git directory itself.
Also, add the debug command line option to allow easier debugging, and stop printing out exceptions for irc logging fails or audit log fails.