adds userMedia as a shared service between host and guest, removes duplicate code