Update Telnet.class.php

Fixed handling for empty prompts.
Added stream timeout to reduce wait time for each stream request.
Changed prompt check to regex for special telnet communication.
Various code clean up.