Support for sending long messages; determined maximal single packet length; changed debugging flag from 'DEBUG' to 'LIBSOCKET_DEBUG'