Switch to grunt for the build system

This pull request switches the build system from make to [grunt](http://gruntjs.com/), so that the build system is also in javascript and will easily run anywhere node will run.