Split operations in two transactions

As discussed in the [wiki](https://trac.lal.in2p3.fr/Quattor/wiki/Development/YumAndSPMA), we need to split our transaction in two phases. Otherwise the component will choose the wrong packages for removal, and crash in ways that require manual intervention.