Validate HTTP API user input

For example, raft indices must be sane integers.
Not really; if the form is nil then checking `r.URL.Path` could panic. I try to code defensively wherever possible, so `parseRequest()` should be able to deal with `nil` `Requests`, requests with malformed keys, etc. Open to alternative suggestions or how things should actually fail