Store passwords in keychain, also fix bugs in edit connection.

Close #6