Introducing CacheManager

I wonder if we should try to line up that enum with the one we have in SmartSync. That being said, SmartSync has fewer flags.