Clean up gruntfile, fix some dependencies, and add tests.