[SW] Bug 940273 First cut at a working sqlite impl for CacheStorage.

This passes current tests, but needs a fair bit of refactoring.  For example,
the DB work is performed synchronously on the PBackground worker thread and
needs to be modified to be asynchronous.