REWRITE: Code for storage functions

Yes, again.  It seems that the latest versions of firefox now allow
content script access to the browser's localstorage object.  This means
that an IndexedDB is not required.