Support for multiple netmasks and IPv6

Previously one could only specify a single IPv4 subnet. When using dual stack with IPv6 one couldn't use OpenHAB with IP based restrictions at all.