added recv_complete_line which returns an allocated buffer
fixed get_arg
improoved recv_line, now reallocs pointer if needed