etcdserver: add id generator
Merge pull request #1952 from yichengq/262

etcdserver: add id generator