Adapt basics of Spamblock Bayes for 2.0 backend.

This takes care of things emitted to the backend, but not to the
backend section generated by the plugin like spamblock actions and
messages.