This adds a new "limit N ..." construct to the query grammar. When a
query starts with "limit N", it will be limited to N results, in
whatever order they're found. Otherwise all results are returned.
This addresses part of #125.
Signed-off-by: Gergely Nagy <firstname.lastname@example.org>