Support for AMD named modules.

Thanks for hulkster! I added an option which allows for naming AMD modules. This comes in handy when combining modules or outputting them directly on a page. Added a new test for it as well.