etcdhttp: do message statistics only on valid ones
etcdserver: clean code