Reuse the URL object to build URLs
Merge pull request #10 from rykov/master

Reuse the URL object to preserve query string, etc