Import from libucl

Adapt to new API
Remove ustring.h from external
Emit the manifest on the right object
Clarify message about empty catalogs
Free the parser only when needed
Fix json emission
Remove debug
Do no accept unknown user/group in pkg register -i
Simplify parsing with numeric values of for version or name