Fleshing out code to add drivers to depsgraph

This is still quite crude, and starts to show the flavour of how the graph
will need to be constructed. After fleshing out a few more bits like this
we can review the design with greater clarity.