#106 Write Import XML into MediaWiki Task

Some additional refactoring and improved exception handling and HTML
outputs.