Use fewer calls for authentication.
Clean up RTMP parsing.