Added type relations of the form:

Root -> Repo
Repo -> Term
Etc

Put the addChild/removeChild/etc logic in a type class

Gotta love those multi param type classes