Refactor Transaction and Dataset
Merge pull request #246 from stephenplusplus/ryan--refactor-transaction-dataset

Refactor Transaction and Dataset
(pubsub) refactor api.