Preliminary support for AMD

all using callbacks now have an imports and exports parameter, and using.amd call added to support naming exports (if no name is provided, the source location is used to key)