Update handle_prompts in remote.py

This pullreq include two update for handle_prompts:
  - return all output text if login succeed. 
  - add connection timed out to the patterns during login and make the function raise error when find this in the output.