Validate HTTP API user input

For example, raft indices must be sane integers.
`t.Errorf("#%d: etcd-index=%d, want %d", i, idx, tt.wi)`