Changed to modules with factory pattern. Added dependencies, grunt, and half of a test file that i will finish later.