Further work on subnets (#12)

Add methods ip.subnet() and ip.cidrSubnet() to get detailed subnet
information.