Generalizing the on-success redirect back from POST /submit
Giving the export an attachment header so it automatically offers to save
Abstracted out the hard-coded tag values into a helper