Transaction API fixes and an end-to-end-ish test
Merge pull request #121 from yjbanov/transaction-api-rebase

Transaction API fixes and an end-to-end-ish test