Add utility functions for parsing IP addresses.
Add utility functions for parsing IP addresses.

This is for parsing both IPv4 and IPv6 addresses and also distinguish
between them. The reason I'm using inet_pton() instead of the ipaddress
module is because it is only for Python 3.3 and we want to stay
backwards-compatible here.

Signed-off-by: aszlig <ee1aa092358634f9c53f01b5a783726c9e21b35a@redmoonstudios.org>

RedMoonStudios/hetzner