Flush SelfLog after writing, when enabled.
Tidied up docs, copyrights, added key/signing to the email sink.