Names added for all items in the dictionary

This fixes #12.
Added IDs and self testing

This fixes #13. All items now contain an ID and the background page now
contains self tests that will run if the value "debug" is set in the local
storage.