Add the RepositoryFactory.

Add the RepositoryFactory, using the Unity ServiceLocator.