Dynamic Control of Stochastic Processing Networks