Start adding basic transaction support
Adjust transcation support and return values
Merge pull request #3 from harlowja/master

Transaction support + tiny fixups