First draft of session store design

PR for reviewers.