Migrate to v0.4 of Grunt

Applied required fixes for compatibility with new version (0.4) of Grunt
More details here: https://github.com/gruntjs/grunt/wiki/Upgrading-from-0.3-to-0.4