Added function to handle socket errors,
which frees and dequeues them before an RFID signal arrives.
Added proper Qt command-line argument detection.
Can now specify a TCP port on the command line.
New debug message for ready state (prints serial and tcp port).