Declare $wgMessagesDirs outside of $wgExtensionFunctions

Needed for Wikimedia localization update (that doesn't execute
$wgExtensionFunctions)
Merge pull request #13 from wmde/i18n

Declare $wgMessagesDirs outside of $wgExtensionFunctions