Merge "REST: call MediaWiki::preOutputCommit and doPostOutputShutdown"