use configured local hostname for reporting metrics and errors

This is a proposed fix for

https://issues.apache.org/jira/browse/STORM-546