Move detection of CommonJS-style exports for amdFactory.
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.