incremental refactoring for Profile.scala to use external MongoRepo and CacheRepo