support etcd v2 api
Merge pull request #12 from ranjib/v2

Support etcd v2 api