Added AMD module loader support to the Angular module. Closes #2293.