added try/catch to protect json parse; added sendConnectMessage flag to server connections
added unit tests for parse good and bad json lines