Play and pause functionality for Canvasrenderer

Play and pause functions implemented. For this to work, setTimeout is
now wrapped in TimestepTimeout, which could be paused as well as
resumed.