Make the query parsing API public.

#121
One more for empty values `key1=&key1=value1`? Also would this handle malformed query string - `?=value1'?