Added ability to name the AMD module as well as adding dependencies.