Switch to new JSON backend when available

Firefox 32 drops the SQLite mozStorage backend in favor of a new JSON backend. This patch switches to use the new JSON backend. I didn't test in FF 31 or earlier.

This should fix #283