Make http.c determine end of message

Still on the path of refactoring to chunked support.
Last thing should be for packet's extra data to be
copied into message for later packets.