Introduce xbps_{pkgdb,rpool}_get_pkg_fulldeptree().

These routines return a xbps_array_t with a full sorted dependency graph
for the target pkg, by querying pkgdb or rpool.

Update xbps-query(8) to use the new libxbps API.