Add support for a log scrubber and log a session id.

This fixes #6.