Added a Gruntfile to enable building a complete file with r.js. Fixes #591

Hi!

I thought I'd give a (very) quick whack at this. It seems to work fairly well. Quite a few tests fails (both with phantom and in the browser), but I haven't looked at why.

I spent like 30 minutes on this (new to Grunt), so it's probably possible to do it better and more cleanly than this. but it's a start at least, and I have no problem tweaking it before a possible merge.

This should make it easier to add linting and all that good stuff as well. Maybe auto-building on Travis. (this ties into #605)

I also left out the built file, just run ``npm install && grunt builld`` (just calling grunt runs the tests, and some fail).
Many of these changes are because, as mentioned in #617, the line-endings became messed up