netmask_to_cidr function added

To help convert between netmasks given in the facts to a CIDR
value, supply a jinja function to help us out.