first stab at documenttree

dont use it bluntly as it parses al documents and is thus
very slow when e.g. switching sessions and opening many files at once