Launch the main loop of the agent. This funtion blocks until it quits.
Implements ScimBridgeAgent.
References RETVAL_FAILED, and RETVAL_SUCCEEDED.