Extract dummy-db module
Do weird singleton-or-not thing with dummy db
Merge pull request #317 from mozilla/dummy-db-module

[WIP] Extract dummy-db module