When collector is configured in agent config file, InitGenerator is invoked before ConnectionStateManager::GetInstance(). This resuls in agent crash because of the restriction enforced by commit https://github.com/Juniper/contrail-controller/commit/03133839a5e6e11000bd339e6ec6dd0e2812334f which requires ConnectionStateManager::GetInstance() to be invoked before InitGenerator.

Fix agent initialization so that ConnectionStateManager::GetInstance() is invoked before InitGenerator.
Closes-Bug: #1399521

Change-Id: I069a485dd060cc3892c16b7fe822a2eebdb8c992
Merge "When collector is configured in agent config file, InitGenerator is invoked before ConnectionStateManager::GetInstance(). This resuls in agent crash because of the restriction enforced by commit https://github.com/Juniper/contrail-controller/commit/03133839a5e6e11000bd339e6ec6dd0e2812334f which requires ConnectionStateManager::GetInstance() to be invoked before InitGenerator."