Adding settings saving for selected directory

Refs #7681
Merge branch 'feature/7681_new_mantid_widget' into develop