Added Grunt integration with CoffeeScript. Some refactoring