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`
:+1: