FileUtil::loadConfig now returns a DOMDocument
improved config loading & error output
Revert "FileUtil::loadConfig now returns a DOMDocument"

This reverts commit 58b07f266ccc36330be7a8390af3c6a71e0ee642.
improved config file loading