Finished Dexie migration (not tested!)

Finished migrating to Dexie but not tested at all.

Found the following issues that was also corrected:

* "tags" not var-declared near if (msg.action == "allow")
* showAll() and search() was calling cb() for each found entry instead
of calling it when done.
* search() Only searched for the last tag of given tags array