Added PersistenceManager class to manage configuration. View classes such as MainWindow, CentralWidget and OptionDialog have been updated to use it