Dependency API

Main functions in dependencies.js.