Replay

Adds integration testing facility and tries to fix tests on travis.
Accidentally deleted the previous request due to git's "special" CLI awesomeness.