Add module-local variable binding __moduleName = normalizedName

Remove .js from test input URLs.
Add test for __moduleName; 
Adjust tests for AMD and commonjs, they now see __moduleName.

Fixes issue #694