CFY-747: prefix resources' names -- cleanup

	* Move common functionality out
	* Small related code improvements
CFY-747: prefix resources' names -- cleanup and move to cloudify-cli