Regularly ping the inner demons

This is so we notice when it stops working.
Clear pending pings on subscribeTo

We have reason to believe the inner demon is fine, and we don't want to clear
the current one.
Add functions to the inner demon for session save and restore
Split InnerDemon out into its own module

subscriber.js is getting too big.
Implement session resumption