More generic server message handling
Clean up client code
Skip empty lines on input
Add newline to warning print