Added depth and hashpath fields to treenodes.  Added a much faster build_path on treenodes.