Added ability to specify dependencies of AMD module to AMD module generation function
Fixed error in last commit
Added ability to name the AMD module as well as adding dependencies.
Removed dependency on JSON.stringify which I believe was causing the build failure
Removed module name as it was causing more problems than it solved, and although technically allowed, defining a module name explicitly is not recommended by requirejs.
Use requireJS commonJS sugar instead of dependencies as arguments to define.
Merge pull request #202 from cjbrowne/master

AMD module generator should be able to define dependencies