Allow configuration of which etcd API version to use for lookups

v1 of the etcd API is currently deprecated so we should allow the use of v2. I kept the default at v1 to preserve compatibility.