[core] Accelerated IO: smarter auto flushing and larger messages
[scgi] Accelerated IO: make header state public and avoid redundant function calls