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.
Merge branch 'master' into build