Make the query parsing API public.

#121
I've updated the docs.