CLOUDIFY-1335 factor out branch name to a static method and use whenever needed. also added some more logging