Handle some error conditions for socket connections.
Change name of send_relay_command method to make it more descriptive
Handle errors when send_relay_command uses the socket
send_relay_command as critical section to enable tosr0x methods to be
called from differet threads
Implements timeouts and adds some error management for socket operations
Consolidates access to relay module through send_relay_command() method
Implemnts Minimum time between commands (otherwise Lazybone fails)
Intent to treat access to relay module (WR/RD) as an atomic operation