Add add/remove in_dep call. Add Notify calls.

Add notify calls to dm_instance and dependency_manager in order to
change instance state.
Add add and remove in_dependency entries in dm_instance.py.