Fix quoting for pkg set -o
pkg_fetch: Support pkgng
Fix pkg 1.3 delete handling
Support -P[P] with pkgng
Fix portupgrade -b with pkgng (never worked).

This was broken because init_global sets $tmpdir to "", and is called
twice. The init_tmpdir scall is done between these.

Oddly, this now matches other files by using $tempdir, which is not used
anywhere else.
pkgdb.which: Properly support which_m for pkgng
Speedup portsclean -L with pkgng by loading DB once.

Issue:	#59