Added checks for host keys and added exceptions thrown if constructor fails.
Adapter for SFTP using the pure php SSH library phpseclib