Remove entries all at once when appending/replacing
Add onReferenceSetRemovalFn to HeaderTable functions that remove entries
Consistently encode after processing in HeaderEncoder
Fix bug where implicitly emitted headers disappear on header table eviction
Move common code to utility function
Move more common code to another utility function