Make it possible to use dependencies from the context in a nice way

Signed-off-by: Michael Donaghy <md401@srcf.ucam.org>