Point to src file instead of broken debug build.
Hoist curl.config to top level and add error handlers to all curl() calls.
Remove module id, add cram compat, and reuse common functions with r.js.