Implemented repository initialisation and loading in RepositoryManager.