Game replays

This is a modified version of @jhoff's position_tracking branch. Close #1876