restructuring the tree so that the root no longer contains metadata.
instead, a new header node contains all metadata, and a pointer to the
root.