Improve IP ban supports.

* Implement IRC style whitelists, useful if most IPs in range, except
  for one are spam. Or something.

* Fixed a bug where 1.2.3.4 mask was matched by 1.2.3.42.