This is the first version of significant changes to the database boot repair code and start of module self-repair responsibility. This db should be able to boot with a missing client.caches.db and repair and repopulate almost everything.
closes #961, closes #954, closes #904, closes #841
closes #959, closes #955
closes #768