Simple Go server and Perl TCP client

Data structure gets encoded to JSON, which can be read by the Go client or
the Perl client.