Use built-in "ns_parsequery" instead of manual parsing of query parameters.
Note, that this change might alter query processing, since previously
query parameter without explicit values were treated as boolean values
(like in HTML), now these are treated like "x=" before. The new version is
about 10x faster.
Furthermore, new tests of the regression tests were added for query parameter
processing.