2012 11 22 optimized impl of tree manager in mwlib

Optimization of tree: adds parentid to nodes and uses it in getTree.