libpacman: Make _pacman_resolvedeps static.
libpacman: Make _pacman_trans_add and _pacman_trans_add_pkg return the added pmtranspkg_t.
libpacman: Make dependencies resolution all at once instead of once per packages (for a transaction).