Added support for new ContentHandler approach in MediaWiki 1.21

Change-Id: Id96a973dbd0b7fb5c49667ac1615d171dd724ade