Added a hook into MWNamespace::getCanonicalNamespaces() to provide safe way to
define new namespaces in extensions.
Without the hook the list could be initialised too early and some namespaces
would be left undefined. Was causing problems at translatewiki.net.