start of a major http state machine cleanup
http state machine work (read state machine compiles)
update the write http state machine