Replay

Added Record/Playback functionality for integration tests.