Implement enough of hpack to pass the tests in appendix D.2.