wait for XHR to set the display on the error div
Merge pull request #1663 from jrgm/cookies-disabled-wait

tests(fix): wait for XHR to set the display on the error div
feat(test): Add the ability to run `npm run-script test-functional-oauth` from the command line.
fix(client): Auto-focus the password field on the /delete_account page.

fixes #1672
fix(tests): Fix the oauth_webchannel tests when run by themselves.

In beforeEach, FunctionalHelpers.clearBrowserState was being called before any page was loaded, meaning localStorage and sessionStorage were not being cleared for the content server. This has the side effect that the tests contained a subtle bug where they unknowingly depended on other tests to sign a user in.

The fix is to load the content server's page before running FunctionalHelpers.clearBrowserState.

fixes #1669
fix(test): Fix and enable the oauth-preverified-sign-up functional test.

fixes #1676
fix(client): autofocus the password field on /oauth/signin if the user already has a session.

fixes #1679
Merge pull request #1674 from mozilla/issue-1669-webchannel-functional-tests

fix(tests): Fix the oauth_webchannel tests when run by themselves.
refactor(client): Move many parameters/helpers from Session/ServiceMixin to the Reliers.

parameters:

* service
* most oauth parameters
* redirectTo
* context

helper functions:

* isSync
* isFxDesktop

Other work:

* Split of the OAuthRelier from the normal Relier
* Initialize Channels with the Relier in app-start
* Update the oauth-reset-password functional test to not hard code the email format. Instead fetch the link from the email headers.

Remove all of the resume stuff.

issue #1648
Update with changes suggested by @nchapman and @zaach.

* Clean up Relier creation.
* Remove the "isSync" from the context of views that do not need it.
* Add a `Base` Relier that can be used as the base for other reliers or as a Null relier.
* Always pass in a translator into the FxDesktopRelier.
* Always pass in an OAuthClient to the OAuthRelier.
* Always fetch the webChannelId from the relier instead of ad-hoc.
* in fxa-client, ditch the relierHas and relierGet functions.
* Correctly set the default values in the models.
* Fix OAuth users who verify in a second browser not being shown the redirect link.
* Fix Sync users who verify in a second browser.
* Add unit/functional tests for areas we were previously missing tests.
Merge pull request #1664 from mozilla/functional-oauth-test-shortcut

feat(test): Add the ability to run `npm run-script test-functional-oauth` from the command line.
Merge pull request #1673 from mozilla/issue-1672-autofocus-delete-account

fix(client): Auto-focus the password field on the /delete_account page.
fix the Firefox Desktop Sync password reset.
Merge pull request #1665 from mozilla/issue-1648-move-from-session-to-relier

refactor(client): Move many parameters/helpers from Session to Relier.

r=zaach, nchapman, pdehan
fix(tests): Fix some places that race with an XHR response return
Merge pull request #1681 from jrgm/fix-xhr-remote-server

fix(tests): Fix some places that race with an XHR response return
Merge pull request #1677 from mozilla/issue-1676-enable-preverified-functional-test

fix(test): Fix and enable the oauth-preverified-sign-up functional test.
Merge pull request #1680 from mozilla/issue-1679-oauth-signin-autofocus

fix(client): autofocus the password field on /oauth/signin if the user already has a session.
fix(avatars): set the correct OAuth client ID for fxa-dev environment

Fixes #1683.
Merge pull request #1684 from mozilla/issue-1683-client-id-latest

fix(avatars): set the correct OAuth client ID for fxa-dev environment

fixes #1683
r=ckarlof