CIDR matching for ip-whitelisting & blacklisting.

  This code is not great, and should be moved into a library
 with no dependencies.  We match a /24 or higher.  i.e. Max
 256 wildcard bits.

  This closes #15.