Upgrading grunt to 0.4.0

Upgrading grunt, in the main build and the example projects, to the latest stable release of grunt (0.4.0)

See http://gruntjs.com/ for more details on changes to grunt.

closes #64