Move some replay globals to class variables.
Merge pull request #157 from ahmedcharles/replay

Move some replay globals to class variables.