Fix failsafe checks on missing pkg downloads
Opps, only need to check that on non-base packages
Fix a bug doing updates, specifically that some pkgs get skipped because
the we read pkg query output, instead of pkg rquery

Do some better logging while here
Update the location of our log files, so that pkgng autoclean doesn't
remove them
Speedup and some minor bug fixes during pkg fetch
Fix a bug in pkg rquery / fetch usage. For whatever insane reason
when doing pkg rquery with -C <conf> set to an alternative TMPDIR
the rquery command returns multiple version strings for each package,
one of which is incorrect.

Now we only pass -C <conf> to the pkg fetch command, when we are
ready to do the actual download
When cleaning pkg cache, pass along PKG_CFLAG
Make sure we halt on pkg upgrades gone awry
Chalk this up to another WTH moment, remove -C <pkgconf> from all
pkg-fetch commands. Even though that file is only setting a TEMPDIR,
its doing some weird stuff, which is fetching old pkgs from disk and
not from the mirror...
Check for pkgs in correct location
Fix installing non base packages
Minor fix, don't try to re-install ports-mgmt/pkg, it is already
included by default
Merge remote-tracking branch 'upstream/master'