if you're going to say there's an error, say what the error is
debug protocol (re)use
if we debug log a request, debug log response/error in same block
Make sqlite journaler resiliant when storing log messages which contain
improperly encoded strings.

The troublemaker characters are replaced with "?".
Revert "if we debug log a request, debug log response/error in same block"

This reverts commit 88aee102779f9dcff189202d883e6f4e1a21fc0c.

The code is completely broken. It defines method accepting self as parameter
inside the function block.
Add another log line on debug level when the http protocol makes a connection.
Log a line on info level when httpclient.Connection fails to connect
to the remote host.
Squash two log lines into one.
Fix unserializing UnicodeError(s) by the feat json serializer.

Due to the python bug this was causing a segfault and killing the
process.
Update failing test.
Remove phrase "by the user" from cancelled messages generated
by the http client.
Update failing test cases.

It started failing becuase of the change moving establishing of
partnership to the broken excetution chain.
break into two calls to easily see which fails
Refactor verbose code bits introducing task.LoopingCall helper.
Sort results of conflicts.get_application_status() to always give the
most recent entry on top of the list.
Teach banana serializer to serialize bound method of agents and
function types.

This breaks the compatibility with non-feat banana serializer, but
it removes the pain of passing those types as parameters to side
effect functions from the agent calls.
Make integrity agent monitor the state of configured replications and
raise/resolve alerts about its state.
Remove leftover print.
Fix problems of agents started before HA entered the shard.

There were not notified about the change and were left in the
lobby for eternity. As a consequence they couldn't use the
service provided on per-shard basis, like monitoring.
Fix wrong capabilities of banana freezer.