Node.js style wrapper for localStorage in browsers.