Make the query parsing API public.

#121
Sweet, thanks.