WIP Implemented the store.

WIP, these things are missing:

- [ ] in-line jsdocs
- [ ] README.md with usage section, results of benchmarks, etc. 

/cc @sam-github Please review the code.