Meta server: rework and simplify master / slave assignment by ip, by finding and using the last digit of ip address, and properly handling omitted 0 notation with ipv6 addresses.