more logging for actionkit and bsd.
raise if logging validations fail.
work in progress: refactor authentication.