added TransactionTrait, fixes nested transactions
Merge pull request #577 from gharlan/transaction-trait

added TransactionTrait, fixes nested transactions