Move filesharing code to easyrtc_ft.js and generalized it a bit more.