bugfix: save password with host in keyring

(the same way we try to recover it)
Add testcase
Merge remote-tracking branch 'origin/keyring_bugfix'

Fix #116