url: Flatten slashes in path, more specific scheme-rel urljoin.

Closes chfoo/wpull#205