Allow CIDR notation in ipv4/ipv6 addresses. Use the same regex for form and validation. Close #30

Ipv4 regex are based on http://blog.markhatton.co.uk/2011/03/15/regular-expressions-for-ip-addresses-cidr-ranges-and-hostnames/ post