etcdserver: add id generator

fixes #1064