Fix #3, #6 (partially).

Fixed major screw up with preference management.

Missing things for #6: defaults are read only once. Should be re-read
each time project changes.