Finished abstracting tree structure.

Signed-off-by: Jared Woolston <jwoolston@tenkiv.com>