Refactor automatic packages processing.
Bool values should now be passed as bool for pkg_set.
Fix issues with varargs and types.
Fix PKG_LICENSE_LOGIC and pkg_get.
Merge branch 'pkg-set-bool'
Merge branch '787'
Never check remote rdeps as it is useless.
Restore the original formatting so that everything lines up nicely.
Reorder the priorities for choosing the what to compare the installed
package set against, when not explicitly specified.

Prefer using the ports index rather than comparing against the ports
tree (which is very slow).  This also returns to compatibility with
the old pkg_version behaviour.
pkg add: PKG_FLAG_FORCE->PKG_ADD_FORCE: this is not a job flag, but a flag for add.c to get