Add AMD support using a better method.

As requested in #7, this pull request adds AMD support this method: PaulUithol/Backbone-relational#57.

It would be great to get this in, since shimming non-AMD libraries that have AMD requirements with RequireJS can get a little hairy.