etcdserver: add id tracker

fixes #1064 
this is not correct. it starts from 0