Design of Dynamic Control Policies for Stochastic Processing Networks via Fluid models