fixed problems with localforage

There were problems with the localforage install. Switched to the github URL to fix that for now. The npm package will be fixed soon.
There were other problems that have also been fixed, and tested to work.