Refactor Grunt tasks

The Grunt tasks have been rewritten to allow Travis CI to run the tasks.