Save preferences

Added functionality to save preferences when quitting and restore when
launching again. Also removed HunspellTester - its functionality was
moved to the HunspellXML library (another project).