added TransactionTrait, fixes nested transactions

fixed https://github.com/propelorm/Propel2/pull/401#discussion_r10634517

To avoid duplicate code, I created a `TransactionTrait`. What do you think about this?