Ensure Ember debug is executed at the correct time

The extension stops working when you refresh the page because ember-debug is injected too soon.

I made sure ember-debug is executed after the application has initialized and rendered.  Also did some refactoring.

Aside from some remaining issues, the extension can now be used as it will always start up correctly.