If a URL has a scheme, use it directly

Don't try to prepend the defined scheme, host and port.

This requires the use of urlparse, so now we use that to compose
urls as well.