Rewrite LibraryTreeView

Trying to build a tree in a dynamic way, without ugly private members
and by using recursivity!