[connectionagent] fix bug when no services are found, send config needed signal.

also implement remembering connection state