beta6 compatibility and some more work on PeerConnection.