(fix) Update Gruntfile and package.json

This fix makes sure that Grunt will run `npm install` and `bower install` before moving on to any other tasks. This will make sure we don't lose any more time debugging dependency issues.