Make the query parsing API public.

#121
This makes it look like the leading `?` is optional, whereas the doc on the public API seems to imply it's required.