state/apiserver: Ensure we always listen to IPv4+IPv6

API server is now dual stack (IPv4+IPv6) capable, as it
listens on both 127.0.0.1 and ::1, and clients can connect
to it using both protocols. Added tests and some internal
details needed tweaking. Live tested on EC2.