New msgtx generation

I haven't been through the whole diff yet, but this is rather confusing -- we no longer include the change output in d.outputs, so to think of an index for the change output doesn't make much sense to me