Wiring in shadow extraction

WIP: @markhibberd 



I think it should be on shadow repository, which obviously isn't a thing yet.