New msgtx generation

We need the changeIndex in storeTransactions for the AddCredit call. Somewhere we need to calculate the index and I think it would be strange to do it outside of the decoratedTx. Do you see another way?