Move knowledge of expected packet size into http.c

Part of the major refactor to support chunked transport.
Lots yet to do. Right now the body of a chunked responce
is getting left in the pipeline between messages.
This causes us to freeze.