Expose query logging control through system routines

Instead of JMX. Minor cleanup to the implementation as it wasn't exactly accomplishing concurrent safety.

Tested manually, like the other routines.

Also move the persistitcli routine registration to PersistitStore so it is only present if it will actually work.