Fix up the mediawiki extension class a bit.

Change-Id: Ia674ceaa6d670b2c9f3240575b361aab41eec63a
Merge "Fix up the mediawiki extension class a bit." into production