Fixes, build

* add 'grunt build' to build one optimized file dist/vanilla-storage.js
* cleanup performance.now() because of problems with firefox
* some minor refactoring