Validate HTTP API user input

For example, raft indices must be sane integers.
@jonboulle it would be `recString, ok := q["recursive"]; ok { ...`