JSON preferences (still using prefs panel)

Switches storage of preferences to JSON stored file, but retains the use of the preferences panel to set them.  Migrates all stored preferences to use JSON stored file.

@devoncarew 
Done