Refactored RepositoryManager to LocalRepoManager and
RepositoryManagerRegistry to LocalRepoManagerFactory with a clean
life-cycle and a proxy for each LocalRepoManager.