Fix newlines being saved as a valid command (#26)

When a command was received that only contained newlines it was saved as a valid command.

This pullrequests changes that and strips ending newlines (\n and \r\n) from the command. When that results in an empty string the command will not be saved like any other empty command.

Also added some intigration tests for the client/server.

Fixes #21.

Created by  Alexander Thaller  on October 5, 2021
B5GTKRQI4WCU4NUJLJJ22GRPS7DJ72PXE3FRPI3LL7UU2QDAY26QC
Change contents