Move record update methods to regserver, add record cleanup and
record timeouts.
Fix ipv6 socket check logic.