Improvements to repository tree

- [x] Please review and comment: Update affected tree items when switching repositories.
- [ ] idea: Display the current branch of repositories in brackets after repository name. For submodules show something similr to "git describe --tags". Alternatively, this could be shown in tooltips by hovering over an item.