Split up styling process in tree manipulation & writing output to allow advanced tree manipulation scenarios.  Added grid child ordering to styling process.