Improve message logging in the remote control python tools. This
makes debugging a lot easier. Off by default.
Turn on keepalive's in the dispatcher synchronous
handlers. This is experimental and may be pulled later.
It will certainly be made configurable.

Also added a very rough stats generator. Fix this later.