Url manipulation

The target URL in `requestToUrl` assumes that there are no parameters in the URL. This removes that restriction, by using Node's URL module.