title: Access window object in ember-cli environment
body: <p>Hi I am trying to use torii in a cordova application. My environment.js file looks as below. I an not able to access window document object to setup redirectUri. getting error undefined variable. how can I access window document object.</p>
  
  <pre><code>module.exports = function (environment) {
      var ENV = {
          environment: environment,
          baseURL: '/',
          locationType: 'hash',
          EmberENV: {
              FEATURES: {
                  // Here you can enable experimental features on an ember canary build
                  // e.g. 'with-controller': true
              }
          },
          APP: {
              // Here you can pass flags/options to your application instance
              // when it is created
          },
          torii: {
              providers: {
                  'facebook-oauth2': {
                      apiKey: '2xxxxxxxxxx',
                      redirectUri: document.location.href
                  },
              }
          },
          cordova: {
              rebuildOnChange: false,
              rebuildAsync: false,
              emulate: false
          }
      };
  </code></pre>
  
  <p>in my .jshintrc </p>
  
  <pre><code>"predef": {
      "document": true,
      "window": true,
      "AuthENV": true
    }
  </code></pre>
  
  <p>so I assume document should be globally available but it is not</p>