Rewrote read_line() to support LWS (Line White Space), the method used by RTSP (and HTTP) to break long lines. Also added support for \r and \n as line endings (in addition to the official \r\n).