add ext utilities for dealing with file extensions, started moving to .R, tidied up gwindow and save_plot and moved resave_plots to reporting