Simplify txToPairs function signature.

This moves the non-error return values for txToPairs into a new
struct, createdTx, and adds an additional value for the payment
address string.