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
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
feat(client): Seemless verification in a second browser.

* Create a `resume` token from OAuth parameters. Pass it along to the fxa-js-client.
* Re-populate OAuth parameters from resume token on email verification.
* Bump fxa-js-client to 0.1.25 with the new `resume` hotness.
* Add functional tests for verifying in a second browser.
* Only show the serviceName in the ready screen if the user can continue with the OAuth flow.

issue #1623