Some final cleaning up of Transaction.Commit, now supporting commit hooks.