RFC for SSH Task, new pty parameter and changed evaluation of error_stream

Please read the comment below the commit for explanation. 

Included changes:
new property for pty to create remote terminal
always check the error stream, even if stdout contained content
new property for fail on error (to be discussed)