Resolve - https://github.com/saltstack/salt/issues/14604
Fix `win_pkg.list_upgrades`

Issue #14640: it was iterating one level too high in repo_data.
fix for issue #14655
Fix for python 2.6 not having timedelta.total_seconds()
fix "AttributeError: 'str' object has no attribute 'get'" and happier lint
set default for getattr
unhappy lint, happy salt.states.pkg
remove extraneous condition
Merge pull request #14764 from saltstack/bp-14607

Backport #14607 to 2014.7
Merge pull request #14765 from saltstack/bp-14641

Backport #14641 to 2014.7
Merge pull request #14767 from saltstack/bp-14656

Backport #14656 to 2014.7
Merge pull request #14769 from saltstack/bp-14715

Backport #14715 to 2014.7
Merge branch '2014.7' into develop