Wiring in shadow extraction

WIP: @markhibberd 



NB: Pretty unsafe, keys are only relative to root of repo. TODO: remove and cleanup