Added gruntfile.js and migrated some test cases to mocha