Validate HTTP API user input

For example, raft indices must be sane integers.
I was trying to minimise
```
if recString := q.Get("recursive"); recString != "" { 
  if rec, err := parseBool(recString); err != nil {
```
etc