Use mediawiki.api for querying the API

Change-Id: I16a07e148d522cd7027c06c30e9af40acc70e3aa