Improve IPv4 regular expressions.
Add missing address format validation functions.
Fix is_ipv4_broadcast() behaviour, don't return success for addresses
that can't be broadcast by definition (IPv6, IPv4 p-t-p).
Add IPv6 format validation support to the main program.