Pull out IP-picking magic, allow it to be passed in when including mesos::slave or mesos::master instead.