improve logs:

* pretty print map_reftoken_to_urls.log
* use english_title
* don't mkdir logdir
tests for Catalan autonomy article
truncate urls starting with first '|' character.
improve cleaning wikitext again
fail with error message if log dir does not yet exist