Add "max-keys" argument to GET /

See the second commit for additional comments. Quite unlikely to have a good style.