Use new getMetadata() function rather than metadata property.
Return anon and named modules from AMD capture function.

Rename captureAmdArgs to captureAmdDefines.
Improve error message for malformed `define()`.
Implement temporary early-eval AMD bundle processing algorithm.
Move AMD-specfic modules into a lib/amd folder.
Remove eval() inside `new Function()` to avoid V8 bug (scoped vars are out of scope).
Remove unused applyOverrides function.
Use bower's moduleType if it exists.

Although we're sniffing for moduleType, there are times when a package author or app dev may
need to force or override what may be sniffed.
Use the environment's `require` if we're not running under rave.
Remove unnecessary anonymous function.
Compile new rave/rave.js.
Use window.location instead of document.location.

Chrome and IE will overwrite document.location if there is an element with the name "location". WTF
Merge branch 'master' into build