Avoid ember prototype extensions

Since this is a library, this replaces usages of prototype extensions with the Ember namespaced stuff.