Add a Gruntfile.

This is a rebase of #263.

It just adds the gruntfile, without touching make, which has changed quite a bit.
Maybe someone wants to do the work of getting this going again?

I think moving to grunt may be a good idea as the pipeline become more complex,
but for the moment this wouldn't add any functionality.

Doesn't hurt to merge though.