Made parse_url do more of the processing, to avoid duplicating parts of
drwxr-xr-x - src