TagModel: Implement dumping tree on the command-line for debugging
KnowledgeModel: Remove own TagModel-Object, use reference instead

The second TagModel-object made huge problems, because it was not updated
correctly if tags were added and removed. By using a reference we do not
have these problems anymore.