Updated Grunt to 0.4 and made some basic reorganizations to coffeescript files

This whole commit is kind of a mess.