Validate HTTP API user input

For example, raft indices must be sane integers.
I just want there to be reasons for doing things. Let's just move forward with what we have and we can worry about perfection later.