Validate HTTP API user input

For example, raft indices must be sane integers.
we need to change this to fix https://github.com/coreos/etcd/issues/726