Removing obsolete code.
Improved "defaults" code, moved to util.js, made all apps correct with respect to defaults function.
Severely simplified defaults code - now simply returns an object containing the default config options; changed client code to match new interface.