Fix bug with passphrase. Persist settings on close. Add menu item for cl...

Fix bug with passphrase. Persist settings on close. Add menu item for clearing settings. Add nuget restore.