Adding support for both AMD and CommonJS
Adding AMD loader tests
Adding function for specyfying dependencies
Changing function name
Adding typescript definitions