Add functions to parse path and query string
Fix logic error with uri_encode. Get query string from path.
Update testsuite tests to keep query string in path