Updates sensors and curl commands to use localhost instead of getHostname() (required for Docker)

Have only been able to test with single-node cluster due to outstanding issues with Clocker
This method should probably have a better name. I didn't expect the return value to start with `"-c"`, but that looks reasonable based on where it is called from. Same goes for `getCouchbaseHostnameAndCredentials()`.