Audit logging fixes

Fix a bunch of issues related to audit logging, plus https://issues.jboss.org/browse/WFLY-3020 which is unrelated but got noticed while I was doing the others.

Best to look at this commit by commit.