lib/store.js: base storage pipelet for caches and persistent storage, first commit WIP