Updated HookDoc and HookManager to track EntityMetadata as a way to pass identifying fields to hook implementations