Add amdDefineWrap support to wrap joined in a CommonJS-style AMD wrapper

We wanted a way to wrap our require/exports dependent files in a CommonJS-style AMD wrapper for use in the browser.

Authored by @longoria and @joerozek