Bug 1080640 — Room tokbox session token login

https://bugzilla.mozilla.org/show_bug.cgi?id=1080640
should we put these outside of the authenticate* functions? They seem to be duplicates.