Implement configurability for actions and data-sources via new dependencies config.
Also move identical code into new base class Dependency.
Also improve Email-action to better support headers and add default from configuration.
Fixes #4