APISite: factor out validation of iterations params

A few methods in APISite were reusing the exact same code to validate
parameters used with an iterator (start, end, reverse).  The new
assert_valid_iter_params() now takes care of it.

Change-Id: I3e90ec613080c5257ce1ed1ebbd981841f0a192e