Use an initializer to store session info

Auth token and user id are stored in sessionStorage. Allows data
to be restored on page refresh.