move getStats to adapter.js

But it looks like `src/webrtc/peerconnection.ts` could return the enum type rather than a string. That would make it the only piece of code examining the raw strings which I think would be desirable.