Added an attempt at being able to pause doppio.

I do not know how it interacts with separate threads.
It should not change doppio's behavior if nothing calls rs.pause or rs.unpause.
In the codemoo branch slow-down-doppio, there is code to call these functions.