Fix deprecated WebRTC methods.

- Remove deprecated onicechange method. 
- Replace deprecated ongatheringchange with oniceconnectionstatechange.