Import libtelnet @ https://github.com/seanmiddleditch/libtelnet
Extract telnet releated stuff to net/telnet.cc

Aslo extract outbuf to a seperate module.