Update export and mwcore-export to use Maintenance class

Also move Cli::parseLanguageCodes() to TranslateUtils class, update callers
and remove some duplicate code.

Change-Id: I47e5c1063e8a695f54c06001d493f7ccfad714f6
Merge "Update export and mwcore-export to use Maintenance class"