Encode passphrases correctly (fixes #885)
Avoid leaking passwords and phrases to the event log
Fix editing of local sources
Fix bugs in local mailbox discovery