Transaction function re-order and add Transaction.prototype.toString

This PR adds `Transaction.prototype.toString` as an alias of `Transaction.prototype.getId`, and re-orders the functions in `Transaction` to be consistent with the order used throughout the rest of the project. 

If the changes need to be atomic, I'll happily split them up,