defining framePayloadToFrameType.
initial code for http2-frame-test-case.