allow agent to be configured via configuration file

Signed-off-by: dmitriy kalinin <dmitriy@pivotallabs.com>