Move CSV generation to RequestStats and expose to the CLI

This adds the ability to export CSV reports from the CLI, moving generation to RequestStats.