use Stud.IP funcions to test for internal links
properly encode HTML block contents in XML exports
finish the export of referenced files, refs #237

* replace hostname in URLs that reference internal files by the dummy
  host internal.moocip.de

* export file metadata (name and description)

* don't dump the file contents if a document references a URL