[MODULES-176] Add API to inspect module dependencies