Separate RTMP and HTTP switching logic, via different metrics providers. Extract switching logic from HTTPNetStream into standalone switching rule based on download ratio. Make terminology a bit more consistent. Clean up APIs. Add tests for download ratio checks.