Create tempory files with suffix

These commits modify tig to create temporary files, that are used when editing files from the tree view, with their name, so that editors can automatically set up their syntax highlighting.