Support adding children in the outline, remove support for editing the title

Title editing turned out to not work correctly, i will have to look into
that in the future.
Also added a DocRoot class which makes it easy to build up a document
outline by automatically refreshing the outline every time something is
added.