Inactivity timeout support
Some test for inactivity timeout

They're far from ideal - slow, and occasionally the timers set up by the
tests don't fire, leading to failures. Suggestions for improvements
welcome
Merge pull request #1 from pusher/inactivity_checks

Inactivity checks