Add repository sidebar hooks and configuration buttons for repositories
This patch adds configuration links to repositories in sidebar.
In addition sidebar for repositories is refactored for:
- uses link_to_repository helper, which is provided by the patch with tests
- adds hooks for plugin developers
- uses list for repositories, instead of br