etcdserver: add id generator

fixes #1064 
the next id is predictable. so we should do a direct compare.