Move Ember dependency loading into head.

Without this change the first run of any ember application fails everytime
(since `Ember` isn't defined).