Added Karma test framework and integrated with Grunt.