Fix #6
fix multi-instance transaction tracking
reset transaction after commit
Merge pull request #7 from velosipedist/#6-fix-transactions

Fix #6