fix(session): store uid in local storage

Fixes #1569.

@ckarlof r?