[TASK] consolidate transaction logic
Merge pull request #215 from ripple/refactor-transactions

[TASK] consolidate transaction logic