Support for libcap-ng
Fix CLI tests
Fix memleaks and better docroot detection
Updated tests