API Improvements.

Module now simply expects dependencies object.