Must pass bytes to potr context.receiveMessage()
Add test for generation of key file.

The weechat config directory in mock weechat is now a real directory.
Its contents will be snapshotted and restored before each example
with the rest of the weechat mock.