preventing new tab opening on download

Fixes #600. Tested on IE8, Chrome, Firefox with:
 * CSV
 * Shapefile

GML3 still doesn't work, but that's unrelated to that fix.