[Mediawiki-api] APIEdit and hooks