Make the query parsing API public.

#121
Is that in some RFC? I've never seen that before and I don't think it's expected. I see this leading to random bugs in apps.