Validate HTTP API user input

For example, raft indices must be sane integers.
we do not need the parseUint64 wrapper.