Get rid of globally declared variables.

Angular modules should be the only global thing.
Make each script have an anonymous self-invoking function, wrapping its contents.