Add ipv4 and ipv6 validators.

Closes #3, #4.