* initial attempt at automatic removal of stale states
* test case, need espected states
* finish unit test
* PR feedback
* still multiply by time.second
* pr feedback
(cherry picked from commit b5f464412d)
Co-authored-by: David Parrott <stomp.box.yo@gmail.com>