Bound get-entries to what we have.

Fixes #138.
Limit the number of entries returned per request.

Fixes #137.