Include Ember.Debug in the build process and fix several bugs