Pass sudo password hook to SshConnection

Pass it as a hook instead of the value to avoid asking it from the user
in case it is not needed.

Fixes #294
Merge pull request #301 from tmatilai/ssh-sudo-password

Pass sudo password hook to SshConnection