Simplify the interface to config listener in order to use it
in unit tests that do not have a full agent.

Change-Id: I12f72a9989012171065e490daac06dc210bd1732
Merge "Simplify the interface to config listener in order to use it in unit tests that do not have a full agent."