Make infos an attribute so it can be changed in tests.

Add server,nick2 key.
Add test that sets up and uses an OTR session.
Add to_bytes() for cases where bytes are always needed.

On python 3 when calling potr, bytes objects (not strs) are required.
Make all the places that do this conversion call a single function.