Collectd module could be required by plugin components
but importing it from their modules makes unit testing
harder because it would require running tests from
inside collectd process.
This changes make the module available by passing it
to component constructors which makes testing and mocking
easier.
Related-Bug: #1583301
Change-Id: I6abfd330c8f3b5108e78543df7c803cd65a15655