Add support for grunt 0.4.0

As the title says, this adds support for grunt 0.4.0. Some of the required devDependencies aren't up to date in the npm registry so we have to add them by a specified commit. I also rewrote the `enqueue_ver` task to compatible with the recent changes to grunt.