Add grunt, karma and basic unit test

Gives the ability to run unit tests and provides a basic test.