Make the query parsing API public.

#121