Grunt build tasks

Works for the most part, `grunt optimize` to use it.