(PDB-708) Structured fact storage

This series of commits turns on structured fact storage, but keeps backwards compatibility for now.
Is this the function you had some difficulty fitting into the tree editing stuffs?