Added support for the angularjs environment

So far as I'm aware, the only global variable added by angular is
"angular" (which is used for utility functions), whereas everything else
is accessed via dependency injection. But if I'm wrong, this change
should set up the infrastructure to add more variables in the future
for angular.