Move ifmap dependency tracker to the ifmap library so it can be used in the agent

Change-Id: I66393602dcb263e3e325adb25f22f4597d2d6225