Redesign progress showing.

Rewrite show_progress to be more abstract.
Show progress while scanning the local package and the repo. directory.
Cleanup some unused or misused variables.