Restructure Ember.libraries to be more idiomatic. Fixes #9291

Requested by @stefanpenner https://github.com/emberjs/ember.js/issues/9291