Add add/remove dependency API calls

It adds add_dep and remove_dep to the Dependency Manager class.