Cli#server_config: fix return value if server is not found
CLI: remember last used auth method, fix saving basic auth

Last used authentication method is used when no other is specified.