Remove trailing spaces
Detect connection lost in :authenticated state
Remove some debug messages

These parts already work well enough that we should be able to find any
problems in the transcript.
Fix author email address