Code cleanup
Fixed a possible Null-Pointer that can be generated when a cloud has a single deployment with a source that has been removed.
Add the DeploymentSource object to provide when the source doesn't exits anymore.
Fix rest it for archive upload.