Add generateHostname function

Added new yaql function called generateHostname that should be used
for hostname generation. Generates random hostname if no value is
provided to the function, or return provided value.

Change-Id: If1aeeb05b4a8d3984e0c518270920cb3e896576e
Merge "Add generateHostname function"