1658 temp using persistent3

Rebased and fixed the view cleanup.  Getting the same error as you "map documents on 0/null/undefined/empty string".  FWIW I'm testing in IDB for now; it gives me a "the database is closing" error.