v1.6.5 Firefox; Patch localStorage, fixes #4

Replace all localStorage methods with a custom method that stores
the data at the main page.

This is needed, because localStorage is apparently cleared when
"Keep until:" is set to "I close Firefox" (for cookies)