Some bug fixes for the CSV export.

- Checks and creates the folder in data for the csv exports if there isn’t one.
- The exports are now put in environment dependant folders; so for instance any exports ran on development mode won’t be served in production mode.
- Dropped the exception handling