Update testing page; support multiple backends
Refactor common js

also, assume all data in a json data source is an array with the key
'items'
Make indexeddb backend match the main page
Add support for localStorage
Rename test page