Add the hook type as metadata when importing a hook

Fixes #58
Merge pull request #63 from JDGrimes/issue-58

Add the hook type as metadata when importing a hook