Move hook activation into main binary

Previously, the git hook was activated and deactivated by executing the
hook script.  Now it is activated and deactivated by running the hook
command from msync.