Add support for MediaWiki 1.21 branch

Change-Id: Ic5472a0594996c6e05dc3f34f9e5eafc8847eb0e