[Mac] Restructure WebMediaSessionManager for testing