refactoring in progress for more complete spdy/3 support