Made AntiCacheDB a generic class, split BerkeleyDB and NVM to separate subclasses. Did not change tests nor EE.