Command line utility to retrieve categories for MediaWiki pages, in the right order