Stem wrapper method for the SETCIRCUITPURPOSE control command

Stem should be able to repurpose existing circuits using SETCIRCUITPURPOSE (This led to #6667).

I've pushed my implementation here.