Factor out AJAX defaults into ve.init.mw.Target.static.apiRequest()

Change-Id: I90b0858ccd657b7183ae5327903449d17d9f0bef
Merge "Factor out AJAX defaults into ve.init.mw.Target.static.apiRequest()"