Rewrite of server code with Go.