Not cutting the minion name when displaying it if it's an IPv4 address

Sometimes a minion is represented by IP and not by hostname.
In that case, cutting it to till the first '.' appears as it is done today results with unclear and confusing displayed name (for example, 127.0.0.1 is displayed as 127). Hence, the patch adds logic to check whether the minion name is a hostname or an IP, and if it's an IP - display it 'as is'.
Note - IPv6 handling is NOT part of this patch.