AIRAVATA-1283 - Added support for hostname in all servers.

Signed-off-by: lahiru <lahiru@apache.org>