ImportCSV: Making it work with apps

Some changes to ImportCSV so that it can be called by external apps
nicely as a module and return everything it should and cleaning up
after itself. Salstat.py changes are just for testing.