Issue #518 , Logging download and packdownload clicks on django. Also ch...

Issue #518 , Logging download and packdownload clicks on django. Also changing the path of preview files, capturing their clicks in django and redirecting to the original path of the preview files. We also set up a new logger for logging clickthrough data. The logger can be turned on/off from insde the settings.py file.