Resolve AMD and CommonJS dependencies on load

Correctly resolves underscore dependency when being loaded in an AMD or CommonJS setting. Otherwise, underscore would need to be a global variable.

Since Backbone is not patched automatically, it is not included as a load-time requirement.