move getStats to adapter.js

So it's not actually ConnectionAddresses, because localType and remoteType are strings and not candidateType, so it's seems hacky, and we can get away with it because it only runs in javascript, but I still think that's it might be error prone