Changed default scaling group type to 1, in java-stack.template
XLCLOUD-1270, XLCLOUD-1139 - modified java-stack.template and layer templates - replaced /etc/hostname with IP address fetched from metadata server; added output for Xsa IP address