refactor logic to parse queue's URL when using query, add test case with relative path for queue URL
Merge pull request #19 from billhathaway/master

refactor logic to parse queue's URL when using query, add test case