refactor api_req into a MediawikiCall, which is a fair sight more formalized