Add in parent ids, and change our ids.
Integrate in jQuery treetable plugin. Remove the old tree code.

Integration includes writing a directive for the plugin.