Dynamic Control in Stochastic Processing Networks