refactor: move project cache to WrappedRepository
Last MR before introducing the MR cache (repository).
This MR removes a global project cache and replaces that cache with a repository-specific cache. In other words, we store the project belonging to a GitRepository, instead of having a global map with all projects.
Related to #341 (closed)
Edited by Tomas Vik (OOO back on 2024-11-19)