mediawiki.legacy.ajax: Wrap Sajax methods in mw.log.deprecate

Bug: 40785
Change-Id: I52f01e4e7d8a0ee595b4775068c8a3d630140092