chore (grunt upgrade): upgrading to grunt 0.4.2

Upgrading to grunt 0.4.2 and upgrading all the dependencies
and making necessary code changes to use those dependencies.