implemented cache tree without having to use Apps

Relation graph data structure not on Registry any more.