Add support for saving metadata on queries.

All of these are good points, I've separated filepath from filename as distinct variables within thread_metadata and stripped the filepath as with other private data within the metadata output. I'm concerned that the git tag requires the user to have pulled telescope by git, so I proposed a TELESCOPE_VERSION global variable.