lib/transaction_sortdeps.c: remove dead code.
lib/transaction_sortdeps.c: bump copyright year.
Make some reorganization in struct xbps_handle.

The variables to set cachedir, rootdir and metadir have been
changed to "array of chars", this way there are no extra allocations.

Update clients accordingly and bump API version.