Having somewhat of a similar problem, just havent been able to get it checked out as yet.
only happens on morning or when the engine is very cold.
Was doing some reading and came across a TSB
DESCRIPTION
Some vehicles may exhibit a concern of unstable idling or, in some rare cases, stalling, just after the vehicle
stops with no DTCs detected. The problem is due to the accumulation of carbon deposits inside the throttle body causing air flow to decrease.
http://parts.arlingtonmazda.com/documen ... 9-2069.pdfDont know if it might be related. I guess it wouldnt hurt to service throttle body then work from there if it still happens.