COOPR-324 make sure all system generated hostnames have labels

that do not exceed 63 characters.
Also lowercasing the entire hostname for consistency since they
should be case insensitive anyway.