Fixed a failed functional test for the new hooks functionality.

The functional test now uses a javascript hook instead of a python hook.  Also handle the exception in the Geogit CLI.