the oil and battery light come on ANY time the car dies, and the key is still in the "run" position.
its just reporting what it sees.. a lack of charge and a lack of oil pressure.. (obvious because the car isn't running!)
So.. all you have to go on is:
a random stall
SOME oil on the pan.
could be completely unrelated, and likely are. Look for IAC, or vacuum problems causing stalling. the oil is, almost positively, the oilpan gasket. nothing I can think of to connect the two together, though.
Ray