Updating grunt to latest stable release, 0.4.0

See http://gruntjs.com/ for information on changes.
We've been using release canidates for grunt for a while and they
finally released version 0.4.0.

The build runs by just updating the devDependencies on grunt. Further
tests are needed to make sure all the grunt plugins are working
correctly.
Updating examples to grunt 0.4.0

Updating the examples to make sure they still work correctly with
the latest stable version of grunt.