Implement new telnet logging system
Add and improve test cases

Also correct some issues found during test
Implement tests for logging traffic for multiple telnet connections

Also fix remaining problems in source code
Make it possible to use raw telnet logs in parallel test case groups