move getStats to adapter.js

I still think we should move this code to its own file, e.g. `src/webrtc/getstats.js`.