AMD Define Wrap

Support for adding wrapping joined code with a CommonJS-style AMD define wrapper.

@scottydawg