Add interop require support for AMD and UMD

This is the AMD/UMD equivalent of #191. It allows non-ES6 modules to be imported in the AMD/UMD format.