Feature: Replay, client-side support.

Finally, the client side of the replay code is here.

I don't have much to say but as usual, i'm happy to answer any question related to the code :-)