Better Grunt 0.40 Support

I re-wrote the spritesmith Task, it seems to work well enough but couldn't get your old grunt tests working. It's a bit scrappy but works in my project. I hope you can check my work and provide feedback.