TS: implement IpFilter with sets of ips and ranges (i.s.o. lists).

Simplifies processing of arguments before handing them over to IpFilter.