Fixed bug parsing HTTP messages

Prior version didn't handle message being split in between a CRLF
Added ability to flush file