Add a function to write requests to a file.

So we can do some in-memory changes and write out a modified for
subsequent runs.