Compress selected templates

This is a basic implementation of the feature request in issue #240. According to the tests this works, but it needs some real world usage.

Since I don't use the compress command I'm hoping that @sambs can try this feature out.