main: fix proxy initialization and setupCluster

Fixes #1360 and a bug in NewClusterFromString.
Can we leave it as-is for now in anticipation of using discovery in future?