download links use webapp instead of core.

.csv download link doesn't work yet: the csv code needs to be moved to webapp codebase.