Trivial/c connection manager style

* Trailing underscores
* Const issues (these might be important, can't remember)
* Functions named "hostnames" -> functions named "hosts": since these take hostname and port, not just a hostname