refine rtmp client/server, add comments.