scan_dependency: support for ignoring optional dependencies, more
doc

Change-Id: I35c4d8034d375264eebd4c4e656c53a07602ae5a
Signed-off-by: Kunal Shroff <shroffk@bnl.gov>