Make pkg.upgrades, pkg.upgrade default to refresh=True

These commits make these two functions consistent across pkg providers, as decided in issue #3302.

I also made a number of pep8 fixes.