Improvements to router_xmldir

Several improvements to router_xmldir, in particular meaningful errors, request logging, encoding conversion from the current locale to UTF-8, and additional data such as mtime and size. This partially addresses issue #271.