Add ipv6 support to eldap

This just adds inet6 as an option to allow eldap to connect over IPv6. It also refactors a very little bit.