Relax the coupling between an etcd.Client and a template resource.

The testability of template resources has been simplified through the
use of constructor-injection. Template resource creation now requires an
object that implements the EtcdClient interface.