move file utilities to a single class
allow context in loading dialog to be changed
resolves #540
fixes #542
fixes #543
fixes some corner cases of #542: specifying a new location while some files in the old location are under modification