CLOUDIFY-2531 add some validations/refactoring/prepare stage for dealing with connected_to relationships