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
I have slight hesitation about us advertising as the url the value needed for accessing it from management node. If it is used outside of that particular context, then it will fail. However, your change makes as much sense as the previous code, and works in the docker use-case!