Cleaned up tokbox code and handling of sessions.