fill in missing functions in cachinglayer.js
draft inmemorystorage.js and localstorage.js to work with new cachinglayer.js