Refactored references to csv in cms to be file

The CMS allows uploading of more than just CSV files so where
variables were named `cms` they have been changed to
`uploadedFile` etc.