shapefile export for analyses

Generalise handling of result files: instead of one KML result link,
send array of (title, format, URL) values that are displayed in the
browser (e.g. KML, KML (outline), SHP). This change moves logic for
outline-only links from the client to the server.