added option to save credentials

Added an autologon-switch to the ui, whose state will be persistet in
the userprefs. If this switch is on, the username and password will be
stored in the keychain. fixes #6