etcdserver: add id generator

fixes #1064 
move this to id pkg