Add CPU cycles to AIStateMachine in the crashlogger

Also removes unused Debug Setting CurlMaximumNumberOfHandles.
The maximum number of handles is limitted by
CurlMaxTotalConcurrentConnections.
Merge branch 'master' into curlthreading4
Fix crashlogger wrt AIEngine.