Keyboard-Interactive, timeout, delegate and bug fix

Here it is the pull request :)