Clean up the Gruntfile a bit
Added gitignore
Fix some chaining problems and add some test cases