changes for the data model, now all template variables can be accessed
static in the class Document.class, e.g. Document.TYPE

another bugfix for urls in .link files

cleanups

test case adjustments