This also adds parsing of the legacy CommitmentTree format, to permit easy migration of persisted data.