main: fix proxy initialization and setupCluster

Fixes #1360 and a bug in NewClusterFromString.
sure.