The new bit constitutes the right hand fuse box with three trailing wires:
The black three pin plug attaches to a socket on the right hand side of the head stock, which seems to be wired back to the switch in the handlebar. The white 4 pin plug connects to the two wires from the grips themselves. The purple two pin socket is a mystery thought. There does not appear to be any blindingly obvious plugs on the bike to connect to it. Whatever it does connect to can't be too far away from the black 3 pin plug though, since the wires from the fuse box are bound together fairly close to the end of both the black plug and purple socket.
Looking at the wires coming out from the bottom of the fuse box, it's two green wires, one of which goes to the black plug and the other goes to the purple socket:
Unfortunately, I just handed over the manderin bike to Gromit, so I can't disassemble that to see how the heated grips on that are wired in... Any clues about where I can find the matching plug for the purple socket?
Cheers,
Paul