Fix segfault in Record client
Add test script
Remove internal GC event from record and replay
Remove old TODO
Add support for replaying network traffic exactly.

Current observed limitations:

- Some urls are generated using time or random numbers, preventing us from replaying the correct response
- If two requests are made in opposite order in the code, to the same URL, then we will replay the responses in their original order

Furthermore, there seems to be a bug in replaying some sites. E.g. the page does not continue parsing when replaying http://maps.google.com.