Implement support for secondary index reads

We rely on req.limit being a number below (line 458). I think we should set it to a default value instead of undefined.