Email Record: Stochastic network optimization with application to communication and queueing systems /