Install periodic scripts with executable  bit
Merge pull request #881 from andrejzverev/issue879

Install periodic scripts with executable  bit
Speed up a bit port version by caching directory subdir
Preserve automatic flag on forced reinstall.

Issue:	#884
Do not ignore the last entry from SUBDIR
Speed up a bit more pkg version by not spawning useless sh
Fix memory corruption when using pkg files.
Fix universe free for reinstalled packages.

Get rid of double free of struct pkg* for packages reinstalled.
Fix usage of posix_spawn

Reported by:	jilles
Fix reading pkg.conf
Revert "Fix reading pkg.conf"

This reverts commit 3f56689bff57e3db52ec8fd5c5f730a2aec64d3d.
Sync copy fix from ucl.
Fix another memory corruption.

Reported by:	az
Rework distributing jobs over repo workers.

- Fixed a number of bugs with splitting list of packages to a number of workers
- Now worker processes start their work only when a main process is ready to
process output.
Ignore empty repository configuration files
Always use bundled libsbuf
Make `pkg help` aware of aliases
Print PID in debug output.
Yet another fix to pkg-repo.

Reported by:	az
Fix size of ucl_type.