WIP: Add session hash and remote CCS

PR so this can be reviewed.
Yep, but I haven't yet, so this is sitll needed.