XD-1817: Redeploy modules in reverse order

Added inner class ModuleDeployment that holds module redeployment details
Modified redeployStreamModule to use ModuleDeployment
Improved error reporting in Stream.getModuleDescriptor