Migration to Grunt 0.4 and update dependencies

This commit updates the Grunt file and its configuration so that the latest versions of the modules are used.