Decentralized Control Of Stochastic Dynamic Systems With Applications To Resource Allocation And Portfolio Management