Complete code reorganization to put all user-settable stuff into a single file.