Categories are read from file

Default categories are saved to file, and preferences read from that
file.