etcdserver: add id generator

fixes #1064 
added