Add framework for more modular kvstore usage.