move getStats to adapter.js

Let's return the `WebRtc.ConnectionAddresses` type.