[ignore]  code reformatting and cleanup
First pass at better separation of concerns between dom.persistent and
dom.memtree
Second pass at better separation of concerns between dom.persistent and
dom.memtree