better error messages in djinn plugin

Also did a bit of refactoring mid-stream on the logging interface to
work around an error being thrown by hslogger