Implement {peer, sock}_name.

Implements `{peer, sock}_name` for the relevant tcp and udp methods. Also fixes handling ipv4-mapped/compatible ipv6 addresses and addresses the XXX on `status_to_maybe_uv_error`.