Split log_message() into itself and log_vmessage().

Signed-off-by: Michael Poole <mdpoole@troilus.org>
iauth: Rewrite LoC logic into a generalized XQUERY module.

Signed-off-by: Michael Poole <mdpoole@troilus.org>