Limit the number of entries returned per request.

See also: https://codereview.appspot.com/136690043/
nit: You can use std::min with a list if we're using c++0x, this should work:
end = std::min({end, tree_size - 1, start + FLAGS_...});