fix log messages for tcp connection
re-structuring source files
simplify protocol. No need to broadcast REGLOOKUP after received DEVLOOKUP