testing/badapp.py: Fixes silent Python 2 error.
__main__.py: Supports dumping profile stats.
url.py: Optimize is_percent_encoded() with constants.
scraper.py: Optimize _scrape_links_by_attrib() w/ likely shorter loop.
database.py: Optimize using core queries.