400.status-pkg should be a weekly periodic script

loop rather than repeating essentially the same code
Allow enabling the pkgng version of 400.status-pkg when there are both
pkgng and pkg_tools versions on the same system.
fix #599

Fix up /etc/periodic.conf if requested by use of '-p' flag.  Pull in
the current periodic settings, and update /etc/periodic.conf to
disable any active periodic scripts that depend on pkg_tools(8). Make
a 1-to-1 correspondance between existing pkg_tools periodic jobs, and
pkgng periodic jobs, disable pkg_tools jobs and enable the equivalent
set of pkgng jobs.

Update the 'pkg_version' variable used by weekly_status_pkg_enable if
it still references pkg_version(1)
Ooops. It's 'daily_status_security_chkportsum_enable' not
'daily_status_chkportsum_enable'
$pkg_version will usually contain whitespace
Make it clear what pkg2ng added to periodic.conf
Add uthash fixes (obtained from libucl)
Sync from libucl
Allow yaml_to_ucl to properly find integers and booleans
pkg config on kvlist should have a '\n' before each entries
Make pkg -vvv create a ucl compatible output
Do not deprecate yet packagesite as we are not ready for that yet
Fix loading external keys
Export WWW as expected
Trim CR while converting scalar to ucl string
Fix noarch packages by glob matching in the right order
Rename SIGNATURE to SIGNATURE_TYPE to match MIRROR_TYPE convention
Stop creating pkg 1.0 catalog
Dependency version can now also be seen as an integer
version can also be an integer