Functional tests

Functional tests using travis local ssh daemon. Added tests for Login, Exec and Sftp.
Fixed a bug that disabled stderr output.