Add module-local variable binding __module_name = normalizedName

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