refine rtmp protocol stack, refer to go.rtmp
refine RTMP protocol stack.