echo server from http://jan.newmarch.name/go/socket/chapter-socket.html