Move Ember dependency loading into head.

Without this change the first run of any ember application fails
everytime (since `Ember` isn't defined).
Merge pull request #1060 from rjackson/move-scripts-into-head

Move Ember dependency loading into head.