Added support for AMD and CMD

Added support for **AMD**([Asynchronous Module Definition](https://github.com/amdjs/amdjs-api/blob/master/AMD.md)) and **CMD**([Common Module Definition](https://github.com/cmdjs/specification/blob/master/draft/module.md)).