scraper.py: Catches and discards invalid URLs on urljoin.

Closes chfoo/wpull#77.
Adds some IPv6 URL unit tests.