Simplify url_basename

Use urlparse from the standard library.

I think it does the same, the tests pass. I prefer that to a terrorific regex.