Depends on D12111
See T2503 for the pseudocode behind the generateTokenTxOutput function and how it'll be used by overarching token functions.
Part 2 adds the additional logic for send token's OP_RETURN script and additional token outputs.
The next diff will cover the BURN tx logic.