Use mediawiki.api instead of $.ajax

Change-Id: Iea98b6cb338c8b7ebbf244073bb8fe481e5e7655
Merge "Use mediawiki.api instead of $.ajax"