[wikipedia] Complete rewrite to use MediaWiki API

Issue #221 and #235