Refactor Transaction/Bucket API.
Merge pull request #50 from benbjohnson/api

Refactor Transaction/Bucket API