Add hostname to metadata on client side

Getting hostname from cherrypy on server side is unreliable.