Normalize line endings #617 - add getattributes
Added a Gruntfile to enable building a complete file with r.js. Fixes #591