Add Grunt build script

I started with the [Grunt](http://gruntjs.com/) script by @psyrendust in #1064, but my version is quite different. Also, I haven't removed the original shell build script nor changed the README.