added original telnet.rb from ruby-1.9.3-p374
provide evented telnet client implementation