Made the thing work with the new runnable component structure. Major change was how TreeIterator was initialised

Changed the knowledge about what is a datafile to only reside in the treeiterator. The event type is subtyped to communicate this information.