use our elegant RepositoryAuthenticationForm, add note "Strongly recommended to use an  access token." in case of github
Use OS X Keychain to store credentials