Improve package.json and Gruntfile

This PR supersedes #300

/CC @connor @cvrebert @ZDroid