Add newline after JSON responses

This allows us to do socket.readline to get a
response in silly languages like Ruby.