Incorporated comments:
 * Added hook stuff to confab.api
 * Use local instance of HookRegistry to test add/remove
 * Added __eq__ to Hook class for easier removal

CI-170