Wrap Installs/Upgrades/Removals in a transaction. 

If the cancel button is clicked before the operation completes it will roll back the transaction.
Closes #454.