Function for reading IP lists

We provide a function that reads IP lists from a text file and returns
a fully formed IP set.  The format of the text file can be individual
IP addresses, negated address (denoted by prepending a '!'), and CIDR
blocks.