Remove `window` references in favor of `Ember.lookup`.
Merge pull request #1800 from rjackson/do-not-rely-on-window

Remove `window` references in favor of `Ember.lookup`.