[WIP] Support the Teddy/Irssi protocol

This commit introduces a new module to switch the protocol. It will
look at a protocol=xxx query parameter (like the debug mode) to do so