Use Config instead of globals in MediaWiki

Change-Id: I1e7a59b0f3d514fc49c6c3f6299000419e018b3c