Fix parsing where no '?' in a uri is present (ie path only)
 - also add tests for this scenario
one more test
Merge pull request #4 from ronco/master

Fix parsing of URLs with no '?' or querystring portion