Merge pull request #52 from zelgerj/master

refactored query string parsing and tests
Merge pull request #53 from zelgerj/master

fixed add header normalizing
fixed hostname with trailing dot handling