Use SDL for replay.

This change uses the SDL to create a window and handle events for the trace replayer (command line and editor). This change has a pervasive impact so any code reviews would be appreciated.
Adding a line-attached comment for testing purposes.