Prototyped get_query_map.

Refactored parsing of post data string