cleaned up socket responder loop and log messages
create a custom motd packet for each socket upon request
respond with protocol version as reported by client
added writeData() function to replace commonly used lines
added missing SOCKET_BACKLOG constant variable
minor code formatting fixes