add dependency events

This should enable nicely decoupled monitoring/management solutions, able to trace dependencies.
Merge pull request #306 from spotify/ulzha/dependency-events

add dependency events