Refactoring localsave & making file selection nicer (and hopefully work better.