Integrate grunt-rev into build process

Same as https://github.com/yeoman/generator-webapp/pull/33. I had to rearrange the tasks a little to make this work. `rev` must be happening after every other compilation step except for `usemin`, which uses the revved files.

It worked well in my manual tests. Are there any consequences I could have overlooked?
// @btford @kevva