Wiring in shadow extraction

WIP: @markhibberd 



Wrong types. `HdfsRepository`.  Should minimise this code as much as possible