Add IPv6 support

These patches add in support for IPv6 in the templates and parameters for the modules.