Add Gruntfile for building dist and running tests.

Unfortunately we have one test (related to chai-as-promised) that fails
in Phantom and not in any other browser, so the build fails. This kind
of sucks.