http2: improve http2 code a bit
Multiple general improvements to http2 internals for readability and efficiency
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines