Add csv download option

Add a very crude csv download option to get it working.
Make the csv file accessible from the sidebar