A bunch of cleanup to be more conformant to the HTTP/2 spec WRT handling
stream state errors.