According to my Chilton manual an erratic idle could be (it goes from not so bad to OMFG):
Air filter element clogged
Idle air control system fault (all kinds of components in that) perhaps MAF?
Worn, faulty, or incorrectly gapped spark plugs
Vacuum leak at throttle body, intake manifold or hoses
uneven or low cylinder compressions
timing chain incorrectly installed or tensioned
camshaft lobes worn
faulty fuel injectors
Now, eng stalls has a few different items in it, but the common one betweent the two is a vacuum leak. I'm thinking you may just have a clogged air filter. When was the last time you changed/cleaned it?
Note: I'm also an optimist and doubt it's one of the last 4 problems in that list. I would think that if you had a problem with those your car would be doing a lot more than just idling erratically.