Nuke all sys/queue.h usage and replace it by utlist
pkg_dir_get returns NULL by default
Extract +MTREE_DIRS if any before installing a package
Older libarchive does not have archive_read_filter_none
Fix ya stupid bapt bug
Update my copyright statements
Convert hardlinks handling to use uthash
Fix indentation
Allow to pipe events in json format though a unix socket/fifo

Requested by:	PC-BSD
Do not forget that pkg.h.in has to be modified not pkg.h
Fix a typo and push the message in a data object

Reported by:	jilles
Add errno to the struct pkg_event.e_errno so errno is not accidentally overwritten somewhere in the middle.
Add error message in json for ERRNO events, add the errno number to the data object

Suggested by:	jilles
Add errno to the plugin errno, directly uses the errno from the event in the frontend
Actually parse the right url for HTTP_MIRRORS

Reported by:	kmoore
Workaround libarchive no 100% supporting mtree (doesn't know nocache)
Use _PATH_BSHELL instead of /bin/sh
Escape strings before appending them to json
Fix compile error by casting sbuf_len() to size_t
Simplify escaping test
Remove usergroup.c code because it is not used at all and needs to be restarted
from scratch and redesigned