Bug 1080640 — Room tokbox session token login

https://bugzilla.mozilla.org/show_bug.cgi?id=1080640
This looks *very* similar to the `authenticate` function. Rather than duplicating it, could we try to make it more modular (by passing in an argument the supported schemes it should use)?