WL#8505: Re-implement the query rewrite plugin APIs as an Audit plugin event class

Affects: Server-5.7   —   Status: Complete

To take advantage of the more performant infrastructure the audit API provides,
re-do the query rewrite plugin API as an Audit API event class.