Calculate a proper step value.
Fix pause/resume.
Merge pull request #213 from Dovyski/refactor-replay-as-plugin

Fix a few problems introduced when replay was re-factored as a plugin.