Tree builder specs

I got the specs working and refactored the tree renderer out. @sbleon, let's discuss further tomorrow or Monday.