Add localstorage to api

This consumes https://github.com/knadh/localStorageDB to implement a database query system on top of `localStorage`. Session data is now saved directly to `sessionStorage`
We can prob. just get rid of this method altogether