Do not render templates that have the same content

As a side-effect, this also prevents commands from executing when the resulting template is the same as the one on disk.

Fixes #38  

/cc @armon