[connectionagent] more crash fixes.

move UserAgent initialization to whenever connman becomes available.
[connectionagent] crash fix and other optimizations
Merge pull request #54 from lpotter/master

[connectionagent] more crash fixes.