miscellanous fixes:
modernize version checking code;
use for..in;
use arc4random_uniform;
avoid some manual retain/release problems;
class checks on +initialize;
comment/fix NSError handling
set tolerance for timers
fix sorting in directory browser
new pref to disable certain file types
prevent crash if saved preference tab does not exist (e.g., across versions)