Add proper globals support
Add example rails app

See the ember-rails-example branch for a more detailed history of this
code.