More robust response printing
Fix potential buffer overflow in error()
Don't use perror() if errno is not set
Clear stack-allocated addrinfo struct
Don't process newlines in client_run()
Include newlines in server responses
Don't crash on invalid json
Strip extra space from commands