Save request to file for later replay

This is first working version, but have some bugs I need to take down. I need some feedback as well.