Reworke the IP plugin for CIDR-testing.

  This is not yet complete, and the test-case fails as a result.
 This updates #15.