modules: move EtcdStore into base.lua