Turn Dropbox.Xhr#onError into a plain function.
Switch authState to ERROR when Dropbox returns a 401.