Extra error handling, creation of parent pages, wikitext hacking

Disclaimer: I dont know perl, but since this was the only libre 'export from Confluence' option available, I had to make do :)

I have finally 'finished' migrating a local 500-600 page confluence instance to Foswiki, thanks for this plugin.

As part of the work, I found that the current code didnt handle a number of errors, and failed to create parent pages in Foswiki when it discovered them on Confluence - the page was noted but the foswiki page creation function was not called.

As a side note, I had to copy the wiki's config ('LocalSite.cfg') to the src directory as the script's search path did not include the standard installation location used in the official Ubuntu/Debian packages, '/etc/foswiki/LocalSite.cfg'.

The last commit is a hack to try and get standalone lines working properly in a paragraph - without perl progression theres no way I will be able get into the code's object-oriented wikitext analysis, so I decided to substitute or give up on the project. I understand if you dont want to include this commit.

One less proprietary system in use now!