remove some dead code
Big refactor. Remove need for item IDs and maintaining parentsByChildKey obj. TreeFlattener now stores parent and uses that when calling treeWrapper.getWrapper