try to get Ember via require in AMD distribution

also includes better library registration that also works in the AMD build