Allow fetching all hooks for a user

This set of changes allows to fetch info about all hooks for a given user. It will be useful to show all repos, which user has synced and indicate which can be enabled by logged in user.