Refactor some deprecations for newer versions of Ember. Also set up
injection for some globals so we can migrate away from them.