Bound get-entries to what we have.

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

Fixes #137.
Make the maximum number of entries a flag.