Added a method to get the hostname of the current machine
This is useful for webapps that want to know the hostname of the server, not the virtual hostname used