Session tokens and .setendpoints method

(See commit comments)