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
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(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
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 users who verify in a second browser not being shown the redirect link.

We were incorrectly not importing the `service` parameter in the email verification link when starting up the relier.

Add functional tests for this case.