Line feed normalisation

So tedious.
Strip data packets of whitespace - trailing carriage return usually.
Fix variable name.

Signed-off-by: George Hafiz <georgehafiz@gmail.com>
Gracefully close sockets when exiting.

Signed-off-by: George Hafiz <georgehafiz@gmail.com>
Get status for plugs and last transferred messages from WifiplugPacket class.

Signed-off-by: George Hafiz <georgehafiz@gmail.com>
Improved debug information at the Flask /pipes location.
Toggle plug state with hard-coded packet data at Flask /toggle

Signed-off-by: George Hafiz <georgehafiz@gmail.com>