XD-1788: validate deployment properties

This parses the props higher up in the architecture and validates them before actually preforming the deployment
You mean extra lines at the end? I'll remove.