Added composer.json in preperation for submission to packagist.
Explicitly global'd mediawiki globals so the extension is compatible with composer autoloader.